package com.zfzs.post.modules.agent.service;

import com.zfzs.post.model.vo.WithdrawListVO;
import com.zfzs.post.modules.agent.domain.WithdrawOrder;
import com.zfzs.post.modules.agent.service.dto.WithdrawOrderQueryCriteria;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

/**
* @author ck
* @date 2019-10-18
*/
public interface WithdrawOrderService {

    /**
    * queryAll 分页
    * @param criteria
    * @param pageable
    * @return
    */
    Object queryAll(WithdrawOrderQueryCriteria criteria, Pageable pageable);

    /**
    * queryAll 不分页
    * @param criteria
    * @return
    */
    Object queryAll(WithdrawOrderQueryCriteria criteria);

    /**
     * findById
     * @param id
     * @return
     */
    WithdrawOrder findById(Integer id);

    /**
     * create
     * @param resources
     * @return
     */
    WithdrawOrder create(WithdrawOrder resources);

    /**
     * update
     * @param resources
     */
    void update(WithdrawOrder resources);

    /**
     * delete
     * @param id
     */
    void delete(Integer id);

    /**
     * 提现流水
     */
    List<WithdrawListVO> withdrawList(Long agnetId);

    /**
     * 提现订单分页列表
     * @param criteria
     * @param page
     * @param size
     * @return
     */
    Page<WithdrawOrder> findOrderPage(WithdrawOrderQueryCriteria criteria, Integer page, Integer size);
}